package com.example.demo.bridge_method;

import org.springframework.core.BridgeMethodResolver;

import java.lang.reflect.Method;

public class BridgeMethod {

    public static void main(String[] args) {

        Class<Child> childClass = Child.class;
        Method[] methods = childClass.getDeclaredMethods();
        for (Method method : methods) {
            if (method.isBridge()){
                Method bridgedMethod = BridgeMethodResolver.findBridgedMethod(method);
                System.out.println(bridgedMethod);
            }
        }


    }
}




